﻿<phone:PhoneApplicationPage x:Class="KouDai.Phone.Views.PhotoListBoxPage"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:WPNext="clr-namespace:WPNextTools.NControls;assembly=WPNextTools"
                            xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:vm="clr-namespace:KouDai.Phone.ViewModels"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}"
                            Foreground="{StaticResource PhoneForegroundBrush}"
                            Orientation="Portrait"
                            SupportedOrientations="Portrait"
                            d:DataContext="{d:DesignInstance Type=vm:PhotoListBoxPageViewModel,
                                                             IsDesignTimeCreatable=True}"
                            shell:SystemTray.IsVisible="True"
                            mc:Ignorable="d">

    <!--  LayoutRoot is the root grid where all page content is placed  -->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <WPNext:PhotoListBox Margin="12,0,12,0" ItemsSource="{Binding HoneyItems}">
            <WPNext:PhotoListBox.StrategyDefinition>
                <WPNext:PhotoVirtualizationStrategyDefinition ColumnCount="3"
                                                              ColumnMargin="5"
                                                              LeftRightMargin="12"
                                                              Orientation="Vertical" />
            </WPNext:PhotoListBox.StrategyDefinition>
            <WPNext:PhotoListBox.ItemTemplate>
                <DataTemplate>
                    <Grid Background="LightGray">
                        <Image Source="{Binding ImageUrlForIphone}" />
                    </Grid>
                </DataTemplate>
            </WPNext:PhotoListBox.ItemTemplate>
        </WPNext:PhotoListBox>
    </Grid>

</phone:PhoneApplicationPage>